package com.island.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.island.dao.UserDao;
import com.island.model.User;
import com.island.service.IUserService;
import com.pollexsoft.base.dao.EntityDao;
import com.pollexsoft.base.service.BaseService;

@Service
public class UserServiceImpl extends BaseService<User, java.lang.String> implements IUserService {

	@Autowired
	private UserDao userDao;
	
	@SuppressWarnings("unchecked")
	@Override
	protected EntityDao getEntityDao() {
		return this.userDao;
	}
	
	public void delUser(int id) {

		userDao.delUser(id);
	}

	public List<User> findAll() {

		return userDao.findAll();
	}

	public void insertUser(User user) {

		userDao.insertUser(user);
	}

	public void updateUser(User user) {

		userDao.updateUser(user);
	}
}
